<!--
 * @Descripttion: 
 * @Version: 1.0
 * @Author: 何志龙
 * @Date: 2023-11-01 11:42:18
 * @LastEditors: 何志龙
 * @LastEditTime: 2023-11-30 10:06:02
-->
<!-- 浙政钉现场踏勘v2 -->
<template>
  <div class="siteSurvey">
    <div class="CUNYUSHEN">
      <inputSelect :isShowCity="false" :contentData.sync="contentData" :JFData.sync="JFData" :title="'申请户主信息'" @getValues="getValues" />
      <inputContatiner
        :SaveDataGuid="'35bdee32-62cc-4249-8990-3d4fdbbd904f'"
        :thList="thList"
        :Isshowbutton="
          rowData.NODE_GUID === '{517211B4-3740-4F49-9DA4-7BC3C9A6F9EA}' ||
          rowData.NODE_GUID === '{5E1AD806-7824-4196-8ADF-E231A8704FD3}' ||
          rowData.NODE_GUID === '{67241083-CA60-43FC-B1C1-1F4A2D133184}'
            ? Isshowbutton1
            : false
        "
        :mainrowGuid="rowData.ROW_GUID"
        :ROW_GUID="'414a1c12-1f2c-4b15-8440-6b03a4c2ff48'" />
      <!-- //button 展示宅基地处数 -->
      <div v-if="DUIBI.length > 0" style="display: flex; justify-content: space-around; align-items: center; height: 45px">
        <div v-for="(item, index) in DUIBI" :key="index">
          <van-button type="info" size="small" @click="clickButton(item)">{{ item }}</van-button>
        </div>
      </div>
      <inputSelect :isShowCity="false" :contentData.sync="xianZhaijiDi" :JFData.sync="JFData" :title="'现宅基地及农房情况'" @getValues="getValues" @getButtons="getButton" />
      <tableAdd
        :title="'一次性告知书'"
        :ISBianji="true"
        v-if="isshowsss"
        :button1="['新增', '删除']"
        :rowData="rowData"
        :JFData="tableAdds2"
        :contentData1="contentData3"
        :contentData="contentData3"
        :dataguid="'5b7c6c12-f861-4f28-b2d9-ddd3c8196581'" />
      <van-tabs
        v-if="
          rowData.NODE_GUID === '{517211B4-3740-4F49-9DA4-7BC3C9A6F9EA}' ||
          rowData.NODE_GUID === '{5E1AD806-7824-4196-8ADF-E231A8704FD3}' ||
          rowData.NODE_GUID === '{67241083-CA60-43FC-B1C1-1F4A2D133184}'
        "
        v-model="active"
        color="#007AFF">
        <van-tab :title="'踏勘结果'">
          <inputSelect :isShowCity="false" :contentData.sync="taKanData" :JFData.sync="JFData" :title="'踏勘结果'" @getValues="getValues" />
        </van-tab>
        <van-tab :title="'四至'">
          <inputSelect :isShowCity="false" :contentData.sync="sizhiData" :JFData.sync="JFData" :title="'四至'" @getValues="getValues" />
        </van-tab>
        <van-tab :title="'地类'">
          <inputSelect :isShowCity="false" :contentData.sync="dileiData" :JFData.sync="JFData" :title="'地类'" @getValues="getValues" />
        </van-tab>
        <van-tab :title="'农污设施'">
          <inputSelect :isShowCity="false" :contentData.sync="nwssData" :JFData.sync="JFData" :title="'农污设施'" @getValues="getValues" @getButtons="getButton" />
        </van-tab>
      </van-tabs>
      <van-collapse
        v-model="activeNames1"
        v-if="
          rowData.NODE_GUID === '{517211B4-3740-4F49-9DA4-7BC3C9A6F9EA}' ||
          rowData.NODE_GUID === '{5E1AD806-7824-4196-8ADF-E231A8704FD3}' ||
          rowData.NODE_GUID === '{67241083-CA60-43FC-B1C1-1F4A2D133184}'
        ">
        <p class="subTitle"><span class="line"></span> <span style="color: #3f8ffc">附件</span></p>
        <van-collapse-item :title="'附件'" name="1">
          <upLoad :rowData="rowData" :FJData="FJData1" :isReadOnly="true" :SHITUID="'98bcf528966e48ce896a8b3fd02d45d5'" :UpLoadID="'7a3fc061c866434b8475d3775c9ddcea'"></upLoad>
        </van-collapse-item>
      </van-collapse>
      <inputSelect
        v-if="
          rowData.NODE_GUID === '{517211B4-3740-4F49-9DA4-7BC3C9A6F9EA}' ||
          rowData.NODE_GUID === '{5E1AD806-7824-4196-8ADF-E231A8704FD3}' ||
          rowData.NODE_GUID === '{67241083-CA60-43FC-B1C1-1F4A2D133184}'
        "
        :isShowCity="false"
        :contentData.sync="taKanTime"
        :JFData.sync="JFData"
        :title="''"
        @getValues="getValues"
        @getButton1="getButton1" />
      <upLoad :rowData="rowData" :FJData="FJData2" :isReadOnly="false" :SHITUID="'98bcf528966e48ce896a8b3fd02d45d5'" :UpLoadID="'7a3fc061c866434b8475d3775c9ddcea'"> </upLoad>
      <inputSelect
        v-if="
          rowData.NODE_GUID === '{517211B4-3740-4F49-9DA4-7BC3C9A6F9EA}' ||
          rowData.NODE_GUID === '{5E1AD806-7824-4196-8ADF-E231A8704FD3}' ||
          rowData.NODE_GUID === '{67241083-CA60-43FC-B1C1-1F4A2D133184}'
        "
        :isShowCity="false"
        :contentData.sync="CHDWData"
        :JFData.sync="JFData"
        :title="'测绘单位'"
        @getValues="getValues"
        @getButtons="getButtons" />
      <inputSelect
        v-if="
          rowData.NODE_GUID === '{517211B4-3740-4F49-9DA4-7BC3C9A6F9EA}' ||
          rowData.NODE_GUID === '{5E1AD806-7824-4196-8ADF-E231A8704FD3}' ||
          rowData.NODE_GUID === '{67241083-CA60-43FC-B1C1-1F4A2D133184}'
        "
        :isShowCity="false"
        :contentData.sync="XTTKBMData"
        :JFData.sync="JFData"
        :title="'协同踏勘部门'"
        @getValues="getValues"
        @getButtons="getButtons" />
      <tableAdd
        v-if="
          rowData.NODE_GUID === '{517211B4-3740-4F49-9DA4-7BC3C9A6F9EA}' ||
          rowData.NODE_GUID === '{5E1AD806-7824-4196-8ADF-E231A8704FD3}' ||
          rowData.NODE_GUID === '{67241083-CA60-43FC-B1C1-1F4A2D133184}'
        "
        :title="''"
        :rowData="rowData"
        :ISBianji="false"
        :JFData="tableAdds1"
        :contentData1="contentData1"
        :contentData="contentData2"
        :dataguid="'7ccc19e6-efc6-421b-b7f0-9b853d0585f9'" />
      <tableAdd
        :title="'踏勘意见'"
        :ISBianji="true"
        :rowData="rowData"
        :JFData="tableAdds"
        :contentData1="contentData1"
        :contentData="contentData2"
        :dataguid="'97a30c74-ba2f-48a5-aba4-2f307d6ed53a'" />
      <!-- <tableAdd /> -->
    </div>
    <div class="footer">
      <van-button style="width: 24vw" size="small" type="info" @click="saveData">保存</van-button>
      <van-button style="width: 24vw" size="small" type="info" @click="handleSelect">提交</van-button>
      <van-button style="width: 24vw" size="small" type="info" @click="seephgopto">地图上图</van-button>
      <van-button style="width: 24vw" size="small" type="info">退回</van-button>
    </div>
    <van-action-sheet v-model="show11" :title="show11Title" style="height: 70%">
      <div class="content">
        <inputSelect :isShowCity="false" :contentData.sync="show11Data1" :JFData.sync="show11Data" :title="''" @getValues="getValues" />
        <div style="display: flex; justify-content: center; align-items: center">
          <van-button style="width: 80vw; margin: 20px 0" type="info" @click="saveDataTable">保存</van-button>
        </div>
      </div>
    </van-action-sheet>
    <van-action-sheet v-model="showTable" title="关联危改业务">
      <div class="content">
        <el-table size="small" :data="WGData" border style="width: 100%" @selection-change="handleSelectionChange111">
          <el-table-column type="selection" width="30"> </el-table-column>
          <el-table-column v-for="(it, in1) in contentDataTbale" :key="in1" :prop="it.key" :label="it.label" align="center">
            <!-- <template slot-scope="scope"> -->
            <!-- 处理枚举数据 -->
            <!-- <span v-if="it.key === 'RERECONNAISSANCE'">{{ scope.row.RERECONNAISSANCE == '5' ? '是' : '否' }}</span>
              <span v-else>{{ scope.row[it.key] }}</span> -->
            <!-- </template> -->
          </el-table-column>
        </el-table>
        <div style="display: flex; justify-content: center; align-items: center">
          <van-button style="width: 80vw; margin: 20px 0" type="info">确定</van-button>
        </div>
      </div>
    </van-action-sheet>
    <van-action-sheet v-model="showXTKCP" title="协同勘察人员">
      <div class="content">
        <el-table size="small" :data="XTKCP" border style="width: 100%" @selection-change="handleSelectionChange111">
          <el-table-column type="selection" width="30"> </el-table-column>
          <el-table-column v-for="(it, in1) in contentDataXTKCP" :key="in1" :prop="it.key" :label="it.label" align="center">
            <!-- <template slot-scope="scope"> -->
            <!-- 处理枚举数据 -->
            <!-- <span v-if="it.key === 'RERECONNAISSANCE'">{{ scope.row.RERECONNAISSANCE == '5' ? '是' : '否' }}</span>
              <span v-else>{{ scope.row[it.key] }}</span> -->
            <!-- </template> -->
          </el-table-column>
        </el-table>
        <div style="display: flex; justify-content: center; align-items: center">
          <van-button style="width: 80vw; margin: 20px 0" type="info">确定</van-button>
        </div>
      </div>
    </van-action-sheet>
    <sendPublic :key="componentKey" :rowData="rowData" :JFData="JFData" :isshow.sync="isshow" :handleSelectClose="handleSelectClose" />
    <tableBox
      :rowData="rowData"
      :title="'用户处理设备查询'"
      :dataguid="dataguid"
      :eltableData="eltableData"
      :tableData="tableData"
      :show.sync="ishwows"
      @hadleSelect="hadleSelect"
      :handleSelectClose="handleSelectClosesss"></tableBox>
    <tableBox
      :rowData="rowData"
      :title="'协同踏勘部门'"
      :dataguid="dataguid"
      :eltableData="eltableData1"
      :tableData="tableData1"
      :show.sync="ishwows1"
      @hadleSelect="hadleSelect"
      :handleSelectClose="handleSelectClosesss1"></tableBox>
    <tableBox
      :rowData="rowData"
      :title="'测绘单位'"
      :dataguid="dataguid"
      :eltableData="eltableData2"
      :tableData="tableData2"
      :show.sync="ishwows2"
      @hadleSelect="hadleSelect"
      :handleSelectClose="handleSelectClosesss2"></tableBox>
    <poPupBox
      :rowData="rowData"
      :key="componentKey1"
      :dataguid="'4dffb55c-bd9e-4477-98ba-6e28c4e4d697'"
      :show.sync="showsss"
      :title="'农村住宅设计条件书'"
      :contentData="NCZJSJTJS"
      :AllData="JFData"
      :JFData="JFDatas"
      :handleSelectClose="handleSelectClose1ss"></poPupBox>
  </div>
</template>

<script>
//大数据回显
import bigData from '../public/bigData'
//家庭成员信息可添加修改
import inputContatiner from '../public/inputContatiner'
//下拉框、输入框、日期、单选框、多选框
import inputSelect from '../public/inputSelect'
// import SelectCity from '../public/SelectCity.vue'
//eca的文件上传组件 可上传 删除 预览pdf
import upLoad from '@/utils/upLoad'
import { GSA_Add, GSA_Search } from '@/common/commonApi'
import { getApplyPersonInfoByIdCard, farmhouseNumberApply, getxjnfGethy, dataTransFilePreview, GetFileData } from '@/utils/api'
import tableAdd from '../public/tableAdd'
import timeFormat from '@/utils/timeFormat.js'
import { v4 as uuidv4 } from 'uuid'
import tableBox from '../public/tableBox'
import poPupBox from '../public/poPupBox'
import { GJDBFunction2 } from '@/utils/queryData'
export default {
  data() {
    return {
      componentKey: 1,
      componentKey1: 11,
      thList: [
        {
          title: '姓名',
          isSort: false, // 是否进行排序, // 是否单独显示背景颜色
          sortField: 'FAMILYNAME', // 排序字段
          backgroundColor: 'rgb(242, 245, 247)',
          width: '10'
        },
        {
          title: '与户主关系',
          isSort: false,
          sortField: 'HOUSERELATIONSHIP',
          backgroundColor: 'rgb(242, 245, 247)',
          width: '20'
        },
        {
          title: '身份证',
          isSort: false,
          sortField: 'FAMILYIDCARD',
          backgroundColor: 'rgb(242, 245, 247)',
          width: '20'
        },
        {
          title: '性别',
          isSort: false,
          sortField: 'FAMILYSEX',
          backgroundColor: 'rgb(242, 245, 247)',
          width: '10'
        },
        {
          title: '年龄',
          isSort: false,
          sortField: 'FAMILYAGE',
          backgroundColor: 'rgb(242, 245, 247)',
          width: '10'
        },
        {
          title: '户口所在地',
          isSort: false,
          sortField: 'HZSZD',
          backgroundColor: 'rgb(242, 245, 247)',
          width: '10'
        },
        {
          title: '是否村集体股东',
          isSort: false,
          sortField: 'IF_CJTGD',
          backgroundColor: 'rgb(242, 245, 247)',
          width: '10'
        },
        // {
        //   title: '婚姻状况',
        //   isSort: false,
        //   sortField: 'HYZK',
        //   backgroundColor: 'rgb(242, 245, 247)',
        //   width: '10'
        // },
        {
          title: '是否有不动产',
          isSort: false,
          sortField: 'IF_BDC',
          backgroundColor: 'rgb(242, 245, 247)',
          width: '10'
        },

        {
          title: '不动产编号',
          isSort: false,
          sortField: 'BDCBH',
          backgroundColor: 'rgb(242, 245, 247)',
          width: '10'
        },
        {
          title: '是否机关事业单位',
          isSort: false,
          sortField: 'IF_JGSYDW',
          backgroundColor: 'rgb(242, 245, 247)',
          width: '10'
        }
      ],
      showsss: false,
      ishwows: false,
      ishwows1: false,
      showXTKCP: false,
      handleSelectionChange111: [],
      eltableData: [
        {
          GUID: '1bf61257-b637-4746-84ed-85021afdf73c',
          citycode: '330185106235',
          liabilityUserName: '朱成福',
          doorplate: '杭州市临安区太阳镇桃源溪村４组王家２１号',
          encoding: '330185106235-001-0003-HY'
        },
        {
          GUID: '7683d08e-4c93-453c-86a9-93cd24269f71',
          citycode: '330182002212',
          liabilityUserName: '团结8号',
          doorplate: null,
          encoding: '330182002212-008-0005-HY'
        },
        {
          GUID: '854f2456-8140-438f-ba6c-451c045bfd30',
          citycode: '330185112210',
          liabilityUserName: '汪培洪',
          doorplate: '周家亭子上１２号',
          encoding: '330185112210-008-0003-HY'
        },
        {
          GUID: '9188c2e9-a607-41b5-bb64-636a947ed06d',
          citycode: '330182111211',
          liabilityUserName: '双泉4号',
          doorplate: null,
          encoding: '330182111211-004-0005-HY'
        },
        {
          GUID: '1bf61257-b637-4746-84ed-85021afdf73c',
          citycode: '330185106235',
          liabilityUserName: '朱成福',
          doorplate: '杭州市临安区太阳镇桃源溪村４组王家２１号',
          encoding: '330185106235-001-0003-HY'
        },
        {
          GUID: '7683d08e-4c93-453c-86a9-93cd24269f71',
          citycode: '330182002212',
          liabilityUserName: '团结8号',
          doorplate: '',
          encoding: '330182002212-008-0005-HY'
        },
        {
          GUID: '854f2456-8140-438f-ba6c-451c045bfd30',
          citycode: '330185112210',
          liabilityUserName: '汪培洪',
          doorplate: '周家亭子上１２号',
          encoding: '330185112210-008-0003-HY'
        },
        {
          GUID: '9188c2e9-a607-41b5-bb64-636a947ed06d',
          citycode: '330182111211',
          liabilityUserName: '双泉4号',
          doorplate: '',
          encoding: '330182111211-004-0005-HY'
        }
      ],
      tableData2: [
        {
          key: 'COMAPNY_NAME',
          label: '公司名称'
        },
        {
          key: 'TYSHXYDM',
          label: '统一社会信用代码'
        },
        {
          key: 'FRXM',
          label: '法人姓名'
        },
        {
          key: 'FRSFZH',
          label: '法人身份证号'
        },
        {
          key: 'FRLXDH',
          label: '法人联系电话'
        },
        {
          key: 'DWDZ',
          label: '单位地址'
        },
        {
          key: 'LXR',
          label: '联系人'
        },
        {
          key: 'LXRSFZ',
          label: '联系人身份证号'
        },
        {
          key: 'LXDH',
          label: '联系电话'
        },
        {
          key: 'FWQY_CITYNAME',
          label: '服务区域'
        },
        {
          key: 'FWLX_DICNAME',
          label: '服务类型'
        },
        {
          key: 'QYJS',
          label: '企业介绍'
        },
        {
          key: 'QYRZBM',
          label: '企业入驻编码'
        }
      ],
      ishwows2: false,
      eltableData1: [],
      eltableData2: [],
      contentDataTbale: [
        {
          label: '自建房编号',
          key: 'checkNumber'
        },
        {
          label: '户主姓名',
          key: 'propertyPerson'
        },
        {
          label: '身份证号',
          key: 'householderIdcard'
        },
        {
          label: '联系电话',
          key: 'householderPhone'
        },
        {
          label: '所属市',
          key: 'belongCity'
        },
        {
          label: '所属区县',
          key: 'belongCountry'
        },
        {
          label: '所属乡镇',
          key: 'belongTown'
        },
        {
          label: '所属村',
          key: 'belongVillage'
        },
        {
          label: '房屋地址',
          key: 'detailAddress'
        },
        {
          label: '是否是无房户',
          key: 'isHasHouse'
        },
        {
          label: '治理方式',
          key: 'reportType'
        },
        {
          label: '解决方式',
          key: 'appraiseType'
        }
      ],
      XTKCP: [],
      contentDataXTKCP: [
        {
          label: '区划代码',
          key: 'checkNumber'
        },
        {
          label: '部门名称',
          key: ''
        }
      ],
      showTable: false,
      show11Data: [],
      show11Data1: [
        {
          label: '宅基地处数',
          key: 'ZJDCS',
          ISinput: false,
          required: true,
          readonly: false,
          isTime: false,
          emitData: 'c17982d4-e6da-407c-981a-69557b2258bd',
          NYDARR: []
        },
        {
          label: '是否属于无房户',
          key: 'SFSYWFH',
          buttonTest: '关联',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          emitData: '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
          NYDARR: []
        },
        {
          label: '是否危房改造拆除重建',
          key: 'SFWFGZCCCJ',
          buttonTest: '关联',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          emitData: '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
          NYDARR: []
        },
        {
          label: '原宅基地面积',
          key: 'YZJDMJ', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '原建筑面积',
          key: 'YZJMJ', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '现宅基地处置情况',
          key: 'XZJDCZQK',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          emitData: '2c478392-9c1b-40da-b941-41e4b8c9d6d3',
          NYDARR: []
        },
        {
          label: '权属证书号',
          key: 'QSZSH', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '',
          key: 'XCSJ1', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '房屋处置情况',
          key: 'FWCZQK',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          emitData: 'e69b7481-1f5e-4e81-a20c-87eb21c0dbf2',
          NYDARR: []
        }
      ],
      show11: false,
      show11Title: '',
      tableAdds1: [
        {
          ROW_GUID: '',
          TO_ROW_GUID: null,
          CREATIONTIME: null,
          UPDATETIME: null,
          BLYJ: null,
          BLRY: window.localStorage.getItem('userName').userName,
          BLRYID: null,
          BLSJ: '',
          FILENAME: null,
          FILEID: null,
          OPTYPE: 2,
          RERECONNAISSANCE: []
        }
      ],
      tableAdds2: [
        {
          ROW_GUID: '',
          TO_ROW_GUID: null,
          CREATIONTIME: null,
          UPDATETIME: null,
          BLYJ: null,
          BLRY: window.localStorage.getItem('userName').userName,
          BLRYID: null,
          BLSJ: '',
          FILENAME: null,
          FILEID: null,
          OPTYPE: 1,
          RERECONNAISSANCE: []
        }
      ],
      contentData1: [
        {
          label: '踏勘意见',
          key: 'BLYJ' //绑定的字段
        },
        {
          label: '是否需要再次踏勘',
          key: 'RERECONNAISSANCE'
        },
        {
          label: '人员',
          key: 'BLRY'
        },
        {
          label: '踏勘时间',
          key: 'BLSJ'
        },
        {
          label: '文件名称',
          key: 'FILENAME'
        }
      ],
      contentData2: [
        {
          label: '踏勘意见',
          key: 'BLYJ', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '是否需要再次踏勘',
          key: 'RERECONNAISSANCE',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          emitData: '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
          NYDARR: []
        },
        {
          label: '人员',
          key: 'BLRY',
          required: true,
          ISinput: true,
          readonly: false,
          isTime: false
        },
        {
          label: '踏勘时间',
          key: 'BLSJ',
          required: true,
          ISinput: false,
          readonly: false,
          isTime: true
        },
        {
          label: '文件名称',
          key: 'FILENAME',
          required: true,
          ISinput: true,
          readonly: true,
          isTime: false
        }
      ],
      activeNames1: ['1'],
      active: 0,
      content: [],
      isshow: false,
      Isshowbutton1: true,
      isShowCity: true,
      XTTKBMData: [
        {
          label: '是否需要协同踏勘',
          key: 'IF_XT',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          buttonTest: '选择',
          emitData: '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
          NYDARR: []
        },
        {
          label: '协同踏勘人员',
          key: 'XTRY', //绑定的字段
          types: 'textarea',
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      CHDWData: [
        {
          label: '是否选择测绘单位',
          key: 'SFXZQYDW',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          buttonTest: '选择',
          emitData: '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
          NYDARR: []
        },
        {
          label: '测绘单位',
          key: 'QYDWMC', //绑定的字段
          types: 'textarea',
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      isshowsss: false,
      tableAdds: [
        {
          ROW_GUID: '',
          TO_ROW_GUID: null,
          CREATIONTIME: null,
          UPDATETIME: null,
          CLMC: null,
          FS: '',
          FSID: null,
          BZ: '',
          FILENAME: null,
          FILEID: null,
          OPTYPE: 1,
          YJFYJ: []
        }
      ],
      contentData3: [
        {
          label: '材料名称',
          key: 'CLMC', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '原件/复印件',
          key: 'YJFYJ', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '份数',
          key: 'FS',
          required: true,
          ISinput: true,
          readonly: true,
          isTime: false
        },
        {
          label: '备注',
          key: 'BZ',
          required: true,
          ISinput: true,
          readonly: true,
          isTime: false
        }
      ],
      contentData5: [
        {
          label: '材料名称',
          key: 'CLMC' //绑定的字段
        },
        {
          label: '原件/复印件',
          key: 'YJFYJ'
        },
        {
          label: '份数',
          key: 'FS'
        },
        {
          label: '备注',
          key: 'BZ'
        }
      ],
      taKanData: [
        {
          label: '所属规划区',
          key: 'GHQ',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          emitData: '9b7e6eba-f7a0-4684-b820-8357dd92ae32',
          NYDARR: [],
          isOtherSealf: true
        },
        {
          label: '地址',
          key: 'ADDRESS', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '房基占地面积',
          key: 'FJZDMJ', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '层数',
          key: 'CS', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '建筑面积',
          key: 'JZMJ', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      sizhiData: [
        {
          label: '东至',
          key: 'DZ', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '南至',
          key: 'NZ', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '西至',
          key: 'XZ', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '北至',
          key: 'BZ', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      dileiData: [
        {
          label: '地类',
          key: 'DL',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          emitData: 'd2ec96d4-b5bc-404a-a9f1-34db915c694b',
          NYDARR: []
        },
        {
          label: '日照间距',
          key: 'RZJJ', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '涉及相邻关系的,是否已征得相邻权利人同意',
          key: 'IF_XLRTY',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          emitData: '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
          NYDARR: []
        },
        {
          label: '外墙色彩',
          key: 'WQSC', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      tableData: [
        {
          key: 'citycode',
          label: '行政村区划码'
        },
        {
          key: 'liabilityUserName',
          label: '责任户主'
        },
        {
          key: 'encoding',
          label: '门牌号'
        },
        {
          key: 'GUID',
          label: '编码'
        }
      ],
      tableData1: [
        {
          key: 'DEPTID',
          label: '区划代码'
        },
        {
          key: 'DEPT_NAME',
          label: '部门名称'
        }
      ],
      nwssData: [
        {
          label: '农污设施建设情况',
          key: 'NWSS',
          ISinput: false,
          required: false,
          buttonTest: '',
          readonly: true,
          isTime: false,
          emitData: 'd0ad1260-14c9-4b2e-ac11-9ee6ec9c95f4',
          NYDARR: []
        },
        {
          label: '',
          key: 'SSMC', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '',
          key: 'SSBH', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      taKanTime: [
        {
          label: '踏勘时间',
          key: 'TKSJ', //绑定的字段
          ISinput: false, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: true //true:可以时间选择器 false：下拉框
        },
        {
          label: '填表时间',
          key: 'TBSJ', //绑定的字段
          ISinput: false, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: true //true:可以时间选择器 false：下拉框
        },
        {
          label: '统一农房码',
          key: 'FAMILYHOUSEID', //绑定的字段
          ISinput: true, //true:输入框
          buttonTest: '生成',
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '当前房屋唯一编码为',
          key: 'FWTYBM', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      FJData2: [
        {
          title: '坐标串',
          FileName: [],
          groupGuid: '31afe79c-8cb1-41e9-9ae5-1f980c6d37b1',
          fileList: []
        }
      ],
      FJData1: [
        {
          title: '红线图',
          FileName: [],
          isReadOnly: true,
          groupGuid: '25413802-a7eb-4212-a495-f8e6b84cefbc',
          fileList: []
        },
        {
          title: '规划图',
          FileName: [],
          isReadOnly: true,
          groupGuid: 'f980f20f-718e-48ba-bf8f-7b9c1c51435b',
          fileList: []
        },
        {
          title: '宅基地平面位置坐落图',
          FileName: [],
          isReadOnly: true,
          groupGuid: '94eefbbf-9d60-4065-9797-559ad3f114cb',
          fileList: []
        },
        {
          title: '踏勘照片',
          FileName: [],
          isReadOnly: true,
          groupGuid: '5dd77f0a-d318-4b2e-865f-082cda1f78c6',
          fileList: []
        },
        {
          title: '村会议纪要、村公示照片',
          FileName: [],
          isReadOnly: true,
          groupGuid: '40cac790-2b4e-45a0-8717-ac4ee4f8d4aa',
          fileList: []
        },
        {
          title: '农村宅基地使用承诺书',
          FileName: [],
          isReadOnly: true,
          groupGuid: '0ee9b59f-4a90-4737-bc72-bded711ae918',
          fileList: []
        },
        {
          title: '土地证、不动产证、注销或调剂证明等证明材料',
          FileName: [],
          isReadOnly: true,
          groupGuid: 'b2044faf-d609-46c5-995e-d9d2bab0af6d',
          fileList: []
        },
        {
          title: '农户身份证',
          FileName: [],
          isReadOnly: true,
          groupGuid: '4d489c03-9c4b-45fe-acb3-3664a01fe40b',
          fileList: []
        },
        {
          title: '农户户口本',
          FileName: [],
          isReadOnly: true,
          groupGuid: 'd28c93b0-29de-4eb4-8fd0-4f57e0ee1ee6',
          fileList: []
        },
        {
          title: '农户社员资料',
          FileName: [],
          groupGuid: '6e49c106-5cfc-45f3-833e-fe41ecb4cc0d',
          fileList: []
        },
        {
          title: '独生子女证明（独生子女家庭需提供）',
          FileName: [],
          groupGuid: 'a4027cf9-22bd-4e30-ae5e-624fb9e6266b',
          fileList: []
        },
        {
          title: '分家析产协议书（涉及分户的需提供）',
          FileName: [],
          groupGuid: '52d25f8c-aed2-416e-ad26-a5b857699a58',
          fileList: []
        },
        {
          title: '四邻意见书（涉及相邻关系的需提供，D级危房采取新建方式改造不需要提供）',
          FileName: [],
          groupGuid: '0a8a8ca1-ca83-4437-9dfe-ab365a2885fc',
          fileList: []
        },
        {
          title: '联建委托书',
          FileName: [],
          groupGuid: 'c9fd6bda-f89c-4463-bf36-1ca76422f811',
          fileList: []
        },
        {
          title: '其他材料',
          FileName: [],
          groupGuid: '44666177-b2af-4357-95ad-5d345e342316',
          fileList: []
        }
      ],
      xianZhaijiDi: [
        {
          label: '宅基地处数',
          key: 'ZJDCS',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          emitData: 'c17982d4-e6da-407c-981a-69557b2258bd',
          NYDARR: []
        },
        {
          label: '是否属于无房户',
          key: 'IF_HOUSEHOLDER',
          ISinput: false,
          required: true,
          buttonTest: '关联',
          readonly: true,
          isTime: false,
          emitData: '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
          NYDARR: []
        },
        {
          label: '是否危房改造拆除重建',
          key: 'IF_DILAPIDATED',
          ISinput: false,
          buttonTest: '关联',
          required: true,
          readonly: true,
          isTime: false,
          emitData: '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
          NYDARR: []
        },
        {
          label: '原宅基地面积',
          key: 'OHOMESTEAD', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '原建筑面积',
          key: 'OFLOOR_AREA', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '现宅基地处置情况',
          key: 'DISPOSETYPE',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          emitData: '2c478392-9c1b-40da-b941-41e4b8c9d6d3',
          NYDARR: []
        },
        {
          label: '权属证书号',
          key: 'QXZSH', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '',
          key: 'QT', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '房屋处置情况',
          key: 'FWCZQK',
          ISinput: false,
          required: true,
          readonly: true,
          isTime: false,
          emitData: 'e69b7481-1f5e-4e81-a20c-87eb21c0dbf2',
          NYDARR: []
        },
        {
          label: '是否需要住宅设计条件书',
          key: 'IF_TJS',
          ISinput: false,
          required: false,
          readonly: true,
          isTime: false,
          buttonTest: '添加',
          emitData: '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
          NYDARR: []
        },
        {
          label: '是否需要一次性告知书',
          key: 'IF_BZGZS',
          ISinput: false,
          required: false,
          readonly: true,
          isTime: false,
          emitData: '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
          NYDARR: []
        }
      ],
      contentDataCity: [
        {
          label: '所属市',
          key: 'SSS', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          NYDARR: []
        },
        {
          label: '所属县(区)',
          key: 'SSX', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          NYDARR: []
        },
        {
          label: '所属镇',
          key: 'SSZ', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          NYDARR: []
        },
        {
          label: '所属村',
          key: 'SSC', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          NYDARR: []
        }
      ],
      contentData: [
        {
          label: '姓名',
          key: 'XM', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '身份证号',
          key: 'ID_CARD', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '性别',
          key: 'SEX',
          ISinput: false,
          required: true,
          readonly: false,
          isTime: false,
          emitData: 'a8e5782d-9a59-48e4-b35b-654b9bb667ca',
          NYDARR: []
        },
        {
          label: '户口所在地',
          key: 'DOMICILE', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '联系电话',
          key: 'PHONE', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '家庭住址',
          key: 'HOMEADDRESS', //绑定的字段
          ISinput: true, //true:输入框
          required: true, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      JZCSData: [],
      rowData: {},
      ROW_GUIDS: '',
      WGData: [],
      dataguid: '',
      isadd222: true,
      JFData: [
        {
          IF_HOUSEHOLDER: '',
          TYNFM: '',
          QYDWMC: '',
          ZJDCS: '',
          IF_TJS: '',
          IF_BZGZS: '',
          HOMEADDRESS: '',
          PHONE: '',
          DOMICILE: '',
          SEX: '',
          ID_CARD: '',
          XM: '',
          IF_HOUSEHOLDER: '',
          IF_DILAPIDATED: '',
          OHOMESTEAD: '',
          OFLOOR_AREA: '',
          DISPOSETYPE: '',
          QXZSH: '',
          QT: '',
          FWCZQK: '',
          TKSJ: '',
          TBSJ: '',
          FAMILYHOUSEID: '',
          FWTYBM: '',
          NWSS: '',
          SSMC: '1',
          SSBH: '1',
          DL: '',
          RZJJ: '',
          IF_XLRTY: '',
          WQSC: '',
          DZ: '',
          NZ: '',
          XZ: '',
          BZ: '',
          GHQ: '',
          ADDRESS: '',
          IF_XT: '',
          XTRY: '',
          BLYJ: '',
          RERECONNAISSANCE: '',
          BLRY: '',
          BLSJ: '',
          FILENAME: '',
          FJZDMJ: '',
          CS: '',
          JZMJ: '',
          XTRYID: ''
        }
      ],
      DUIBI: [],
      DUIBI1: ['第二处', '第三处', '第四处', '第五处'],
      NCZJSJTJS: [
        {
          label: '户主名称',
          key: 'BBDYMC', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '户口情况',
          key: 'HKQK', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '建房地址',
          key: 'ADDRESS', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '家庭成员',
          key: 'JTCY', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '用地面积≤',
          key: 'FJZDMJ', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '建筑面积≤',
          key: 'JZMJ', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '申请建筑高度≤',
          key: 'JZGD', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '室内外高差≤',
          key: 'NWGC', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '底层室内地坪标高',
          key: 'DCSNDIBG', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '建筑外立面风格',
          key: 'JZWLMFG', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '一层高≤',
          key: 'YCGD', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '二层高≤',
          key: 'ECGD', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '三层高≤',
          key: 'SCGD', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '四层高≤',
          key: 'SICGD', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '五层高≤',
          key: 'WCGD', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '六层高≤',
          key: 'LC', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '备注',
          key: 'BZ', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '经办人意见',
          key: 'JBRYJ', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '经办人姓名',
          key: 'JBRQM', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '条件书审批时间',
          key: 'TJSSPSJ', //绑定的字段
          ISinput: false, //true:输入框
          required: false, //true: 必填项
          readonly: true, //true:可以填写 false：不可以填写
          isTime: true //true:可以时间选择器 false：下拉框
        }
      ],
      csjjjj: [
        { CHECKED: null, DICCODE: null, DICID: 754, DICNAME: '一处', DICNODEVALUE: null, DICSNAME: '1', DICTYPE: null, PDICID: 230, REMARK: null, IS_DELETE: null },
        { CHECKED: null, DICCODE: null, DICID: 755, DICNAME: '两处', DICNODEVALUE: null, DICSNAME: '2', DICTYPE: null, PDICID: 230, REMARK: null, IS_DELETE: null },
        { CHECKED: null, DICCODE: null, DICID: 756, DICNAME: '三处', DICNODEVALUE: null, DICSNAME: '3', DICTYPE: null, PDICID: 230, REMARK: null, IS_DELETE: null },
        { CHECKED: null, DICCODE: null, DICID: 757, DICNAME: '四处', DICNODEVALUE: null, DICSNAME: '4', DICTYPE: null, PDICID: 230, REMARK: null, IS_DELETE: null },
        { CHECKED: null, DICCODE: null, DICID: 758, DICNAME: '五处', DICNODEVALUE: null, DICSNAME: '5', DICTYPE: null, PDICID: 230, REMARK: null, IS_DELETE: null }
      ],
      JFDatas: [
        {
          HZMC: '',
          HKQK: '',
          ADDRESS: '',
          JTCY: '',
          FJZDMJ: '',
          JZMJ: '',
          FJZDMJ: '',
          JZMJ: '',
          JZGD: '',
          NWGC: '',
          DCSNDIBG: '',
          JZWLMFG: '',
          YCGD: '',
          ECGD: '',
          ROW_GUID: '',
          TO_ROW_GUID: '',
          PKID: '',
          SCGD: '',
          SICGD: '',
          WCGD: '',
          LC: '',
          BZ: '',
          JBRYJ: '',
          JBRQM: '',
          TJSSPSJ: ''
        }
      ],
      data41: [],
      indexs:0
    }
  },
  methods: {
    //关联按钮
    getButton(name, val, key) {
      console.log(name, val, key)
      if (val == '是否需要住宅设计条件书') {
        if (name == '是') {
          this.componentKey1 += 1
          this.showsss = true
        }
      } else {
        if (name == '否') {
          this.$toast.fail('不可关联')
        } else if (name == '是') {
          if (this.WGData.length == 0) {
            this.$toast.fail('暂无数据')
          } else {
            //打开弹窗
            this.showTable = true
          }
        }
        if (name == '完成建设') {
          //打开弹窗
          this.ishwows = true
        }
      }
    },
    handleSelectClose1ss() {
      this.showsss = false
    },
    hadleSelect(data, title) {
      // console.log(data,title, 'data')
      if (title == '协同踏勘部门') {
        let a = []
        let b = []
        data.forEach((item) => {
          a.push(item.DEPT_NAME)
          b.push(item.DEPTID)
          // this.JFData[0].XTRY = item.DEPT_NAME
        })
        console.log(a)
        this.JFData[0].XTRY = a.join(',')
        this.JFData[0].XTRYID = b.join(',')
        this.ishwows1 = false
      } else if (title == '测绘单位') {
        let a = []
        let b = []
        data.forEach((item) => {
          a.push(item.COMAPNY_NAME)
          b.push(item.TYSHXYDM)
          // this.JFData[0].XTRY = item.DEPT_NAME
        })
        console.log(a)
        this.JFData[0].QYDWMC = a.join(',')
        this.JFData[0].QYDWID = b.join(',')
        this.ishwows2 = false
      } else if (title == '用户处理设备查询') {
        this.ishwows = false
        console.log(data)
        this.JFData[0]['SSMC'] = data[0].liabilityUserName
        this.JFData[0]['SSBH'] = data[0].encoding
        console.log(this.JFData[0])
      }
    },
    //获取用户处理设备数据
    async getxjnfGethy() {
      let data = {
        citycode: this.rowData.TOWN
      }
      const res = await getxjnfGethy(data)
      console.log(res, 'resresresres')
    },
    async getButton1(name) {
      if (!this.JFData[0].FAMILYHOUSEID) {
        let perms = {
          accessCode: '170a7b62da0a48ab8bdb19ae81d85b45',
          appKey: '6738c995-69e8-11ec-a673-6805cab640a1',
          businessId: this.rowData.ROW_GUID,
          cityCode: window.localStorage.getItem('citycode')
        }
        const res = await farmhouseNumberApply(perms)
        this.$set(this.JFData[0], 'FAMILYHOUSEID1', res.data.data)
        this.$set(this.JFData[0], 'FAMILYHOUSEID', res.data.data)
      } else {
        this.$toast.fail('请勿重复申请')
      }
    },
    async farmhouseNumberApply() {},
    //获取关联数据
    async getWGGLData() {
      const res = await getApplyPersonInfoByIdCard('430528199906118211')
      this.WGData = res.data.data
      console.log(this.WGData, '关联数据')
    },
    //获取协同踏勘部门
    async getXTTKData() {
      let data = [{ field: 'NODETYPE', value: 1 }]
      const res = await GSA_Search('63f488ed-f43d-4166-915b-71d7af7fed2f', data)
      this.eltableData1 = res.Data
    },
    //获取测绘单位
    async getCHDWData() {
      let data = [
        { field: 'FWQY', value: '441300000000' },
        { field: 'FWLX', value: 448 }
      ]
      const res = await GSA_Search('69f6523e-0a8e-41bc-89f2-48573b917a77', data)
      this.eltableData2 = res.Data
    },
    getValues(name, value, label) {
      // console.log(name, value, label, this.JFData)
      //当选择农污设施建设情况 为完成建设时
      if (label == '农污设施建设情况' && name == '完成建设') {
        this.nwssData[0].buttonTest = '选择'
        this.nwssData[1].label = '设施名称'
        this.nwssData[2].label = '设施编号'
      } else if (label == '农污设施建设情况' && name != '完成建设') {
        this.nwssData[1].label = ''
        this.nwssData[2].label = ''
        this.nwssData[0].buttonTest = ''
      }
      //根据选择的处数新增按钮 需要跟句this.JZCSData的大小来控制
      if (label == '宅基地处数' && name != '一处') {
        let num = 0
        let numX = 0
        this.DUIBI1.forEach((item, index) => {
          // if (item == this.JZCSData[this.JZCSData.length - 1].ZJDCS) {
          //   //当前
          //   num = index
          // }
          if (item.substring(1) == name) {
            numX = index
          }
        })

        this.DUIBI = []
        this.DUIBI1.forEach((item, index) => {
          if (index <= numX) {
            this.DUIBI.push(item)
          }
        })
      } else if (label == '宅基地处数' && name == '一处') {
        this.DUIBI = []
      }
      if (label == '是否需要一次性告知书' && name == '是') {
        this.isshowsss = true
      } else if (label == '是否需要一次性告知书' && name == '否') {
        this.isshowsss = false
      }
      //如果选择否 联动下边输入框隐藏
      if (label == '是否需要协同踏勘' && name == '否') {
        this.XTTKBMData[1].label = ''
      } else if (label == '是否需要协同踏勘') {
        this.XTTKBMData[1].label = '协同踏勘人员'
      }

      if (label == '是否选择测绘单位' && name == '否') {
        this.CHDWData[1].label = ''
      } else if (label == '是否选择测绘单位') {
        this.CHDWData[1].label = '测绘单位'
      }
    },
    clickButton(data) {
      this.show11 = true
      this.show11Data = []
      this.JZCSData.forEach((item) => {
        let a = ''
        a = data == '第二处' ? '755' : data == '第三处' ? '756' : data == '第四处' ? '757' : '758'
        console.log(data, 'edfnien')
        if (a == item.ZJDCS) {
          console.log(item.ZJDCS, 'item')
          this.show11Data.push(item)
        }
      })
      console.log(this.show11Data, 'efnieuf')
      this.show11Title = data
      if (this.show11Data.length == 0) {
        this.show11Data.push({
          ROW_GUID: '',
          TO_ROW_GUID: '',
          PKID: '',
          SFSYWFH: '',
          SFWFGZCCCJ: '',
          YZJDMJ: '',
          YZJMJ: '',
          XZJDCZQK: '',
          FWCZQK: '',
          QSZSH: '',
          WFHGLM: null,
          WGGLM: null,
          XZJDCZQKQT: null,
          DQHJ: '现场踏勘',
          ZJDCS: data == '第二处' ? '755' : data == '第三处' ? '756' : data == '第四处' ? '757' : '758'
        })
      }
    },
    async getButtons(name, value, label) {
      console.log(name, value, label, 'data')
      if (name == '是') {
        value == '是否需要协同踏勘' ? (this.ishwows1 = true) : (this.ishwows2 = true)
      } else {
        this.$toast.fail('请选择是之后再点击')
      }
    },
    //保存新增的宅基地处数
    async saveDataTable() {
      let isedit = true
      let data = this.show11Data
      console.log(data)
      if (!data[0].ROW_GUID) {
        let uuid1 = uuidv4()
        data[0].TO_ROW_GUID = this.ROW_GUIDS
        data[0].ROW_GUID = uuid1
        data[0].eca_RowState = 'added'
        delete data.PKID
        isedit = true
      } else {
        data[0].eca_RowState = 'modified'
        isedit = false
      }
      const date = await GSA_Add('21697fcc-1b1b-4c64-a478-e92cc77aa185', isedit, ...data)
      this.getDangHangData()
    },
    seephgopto() {
      window.open(`https://nfzjszlb.jst.zj.gov.cn/dt/#/PlottingMapNew?jieduan=takan&data=`, '_self')
    },
    //关闭弹窗
    handleSelectClose() {
      this.isshow = false
    },
    handleSelectClosesss() {
      this.ishwows = false
    },
    handleSelectClosesss1() {
      this.ishwows1 = false
    },
    handleSelectClosesss2() {
      this.ishwows2 = false
    },
    deepFunction(data) {
      data.forEach((item) => {
        if (!item.bitian1) {
          if (item.$children.length > 0) {
            this.deepFunction(item.$children)
          } else {
            return
          }
        } else {
          console.log(item)
          this.indexs += item.bitian1()
        }
      })
      return this.indexs
    },
    //打开弹窗
    handleSelect() {
      // this.$children.forEach((item) => {
      //   console.log(item)
      //   if (!item.bitian) return
      //   index += item.bitian()
      // })
      const index = this.deepFunction(this.$children)
      //如果没没用inputsele组件的需要单独判断
      if (index > 0) {
        this.$toast.fail('请填写必填项')
        //判断文件必填项是否填写
      } else {
        this.saveData()
        //强制子组件刷新
        this.componentKey += 1
        setTimeout(() => {
          this.isshow = true
        }, 500)
      }
    },
    /**
     * 获取现场踏勘数据
     */
    async getDangHangData() {
      // const res = await
      // this.rowData = JSON.parse(this.$route.query.data)
      //先用当前行的TO_ROW_GUID 去 这个视图：d6de0877-4126-4363-84e5-092427bd06a2 查出的数据里的ROW_GUID
      let data = [{ field: 'TO_ROW_GUID', value: this.rowData.ROW_GUID }]
      const res2 = await GSA_Search('4dffb55c-bd9e-4477-98ba-6e28c4e4d697', [{ field: 'TO_ROW_GUID', value: this.rowData.ROW_GUID }])
      const res = await GSA_Search('d6de0877-4126-4363-84e5-092427bd06a2', data)
      if (res.Data.length == 0) {
        for (let i in this.rowData) {
          for (let j in this.JFData[0]) {
            if (i == j) {
              this.JFData[0][i] = this.rowData[i]
            }
          }
        }
        console.log(this.JFData[0], 'this.JFData[0]')
        return
      }
      this.isadd222 = false
      this.ROW_GUIDS = res.Data[0]?.ROW_GUID
      let data1 = [
        { field: 'TO_ROW_GUID', value: res.Data[0]?.ROW_GUID },
        { field: 'dqhj', value: '现场踏勘' }
      ]
      const res1 = await GSA_Search('21697fcc-1b1b-4c64-a478-e92cc77aa185', data1)
      this.JZCSData = res1.Data
      this.JFData = res.Data
      console.log(res1, 'res1res1res1res1res1res1')
      if (this.JZCSData.length == 0) {
        this.JFData[0].ZJDCS = '第一处'
      } else {
        console.log(this.JZCSData, 'this.JZCSData')
        // this.JFData[0].ZJDCS = this.JZCSData[this.JZCSData.length - 1].ZJDCS.substring(1)
        this.DUIBI = []
        this.DUIBI1.forEach((item, index) => {
          if (index <= this.JZCSData.length - 1) {
            this.DUIBI.push(item)
          }
        })
      }
      if (res2.Data?.length > 0) {
        this.JFData[0].IF_TJS = res2.Data[0].IF_TJS
        this.JFData[0].IF_BZGZS = res2.Data[0].IF_BZGZS
        this.data41 = res2.Data
        if (this.JFData[0].IF_BZGZS == 5) {
          this.isshowsss = true
        }
      }
      console.log(this.JFData[0].ZJDCS, 'this.JZCSData')
      if (this.JFData[0].NWSS == 724) {
        this.getValues('完成建设', 5, '农污设施建设情况')
      }
      //赋值FWTYBM 和 FAMILYHOUSEID
      this.JFData[0].FWTYBM = this.rowData.FWTYBM
      this.JFData[0].FAMILYHOUSEID = this.rowData.FAMILYHOUSEID
      console.log(this.rowData.ZJDCS)
      this.JFData[0].ZJDCS = this.rowData.ZJDCS
      console.log(this.JFData[0], 'this.JFData[0]')
      if (this.JFData[0].IF_XT == 6) {
        this.XTTKBMData[1].label = ''
      } else {
        this.XTTKBMData[1].label = '协同踏勘人员'
      }
      if (this.JFData[0].SFXZQYDW == 6) {
        this.CHDWData[1].label = ''
      } else {
        this.CHDWData[1].label = '测绘单位'
      }
    },
    /**
     * 保存现场踏勘数据
     */
    async saveData() {
      if (this.isadd222) {
        this.JFData[0].eca_RowState = 'added'
        this.JFData[0].ROW_GUID = this.rowData.ROW_GUID
        this.JFData[0].TO_ROW_GUID = this.rowData.ROW_GUID
      } else {
        this.JFData[0].eca_RowState = 'modified'
      }
      const date = await GSA_Add('d6de0877-4126-4363-84e5-092427bd06a2', this.isadd222, ...this.JFData)
      //单独保存宅基地处数
      this.rowData.ZJDCS = this.JFData[0].ZJDCS
      console.log(this.JFData[0].ZJDCS, 'date')
      const date1 = await GSA_Add('931c475d-c6f3-41c0-8aef-28e20922db97', false, this.rowData)
      //单独保存是否需要住宅设计条件书和是否需要一次性告知书
      let isAdd = true
      if (this.data41.length > 0) {
        isAdd = false
      }
      this.data41[0].IF_TJS = this.JFData[0].IF_TJS
      this.data41[0].IF_BZGZS = this.JFData[0].IF_BZGZS
      const date2 = await GSA_Add('4dffb55c-bd9e-4477-98ba-6e28c4e4d697', isAdd, this.data41[0])
      this.getDangHangData()
    },
    /**
     * 获取家庭成员信息
     */
    async getFlaymdata() {
      // const data = await  35bdee32-62cc-4249-8990-3d4fdbbd904f
      let data = [{ field: 'TO_ROW_GUID', value: this.rowData.ROW_GUID }]
      const res = await GSA_Search('35bdee32-62cc-4249-8990-3d4fdbbd904f', data)
      this.content = res.Data
    },
    //获取宅基地处数
    async getWGGLData1() {
      const res = await GSA_Search('931c475d-c6f3-41c0-8aef-28e20922db97', [{ field: 'TO_ROW_GUID', value: this.rowData.ROW_GUID }])
      //农村住宅设计
    },
    async getZJDCSData() {
      //地图标会接口  -----  何胤豪1月23号提供
      const person_Data = await GJDBFunction2('get_houseapplymsgV2', [{ i_rowGuid: this.rowData.ROW_GUID, i_taskID: this.rowData.TASK_ID }])
      console.log(person_Data, 'niuohiuh')
      if (person_Data.length > 0) {
        // this.JFData[0].FWTYBM = person_Data[0].FWBH
      }
    }
  },
  computed: {},
  mounted() {
    this.tableAdds[0].BLRY = JSON.parse(window.localStorage.getItem('userName')).userName
    this.tableAdds[0].BLSJ = timeFormat(null, 'yyyy-mm-dd hh:MM:ss')
    console.log(this.JFData[0], 'this.JFData[0].NWSSthis.JFData[0].NWSS')
  },
  created() {
    this.rowData = JSON.parse(this.$route.query.data)
    this.getDangHangData()
    this.getFlaymdata()
    this.getZJDCSData()
    this.getWGGLData()
    this.getxjnfGethy()
    this.getXTTKData()
    this.getCHDWData()
  },
  components: {
    bigData,
    inputContatiner,
    inputSelect,
    tableBox,
    upLoad,
    tableAdd,
    poPupBox
  }
}
</script>

<style lang="scss" scoped>
.siteSurvey {
  height: 100vh;

  .CUNYUSHEN {
    height: 93vh;
    padding: 4px;
    overflow: auto;
  }

  .footer {
    height: 6vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .subTitle {
    width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #9b9b9b;
    padding-left: 10px;

    .line {
      width: 6px;
      height: 26px;
      background: #3f8ffc;
      display: inline-block;
      margin-right: 10px;
    }
  }
}
</style>

<style>
.van-cell {
  color: black;
  font-weight: bold !important;
}

.van-collapse-item__content {
  color: black;
  padding: 0 6px !important;
}
</style>
